﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data;
using System.Configuration;

namespace FrbaBus
{
    class ConexionSQL
    {
   
        public ConexionSQL() { }

        public static SqlConnection crearConexion()
        {            
            try
            {
                string connectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
                SqlConnection conn = new SqlConnection(connectionString);
                return conn;
            }
            catch(Exception ex)
            {
                throw ex;
            }
            
        }




        
    }
}
